<div class="post">
    <div class="post_header">
        <h3 class="admin_title">Gestione forum</h3>
    </div>
    <div>
        <img style="cursor:pointer;" id="img_add_forum" alt="Aggiungi forum" valign="middle" src="static/images/layout/add_forum.png" />
        <img style="cursor:pointer;" id="img_add_category" alt="Aggiungi categoria" valign="middle" src="static/images/layout/add_category.png" />
    </div>

    <div id="add_category">
        <div class="post_header">
            <h3 class="admin_title">Aggiungi una nuova categoria </h3>
        </div>
        {$openNewCategoryForm}
        <table>
            <tr>
                <td>
                    {$input_new_category_name}
                </td>

            </tr>
            <tr>
                <td>
                    {$textarea_desc_new_category}
                </td>
                <td style="vertical-align:bottom;padding-bottom:5px;">
                    {$submit_new_category}

                </td>
            </tr>
            <tr>

                <td style="color:green;">
                    {if isset($category_inserted)}
                        <b>{$category_inserted}</b>
                    {/if}

                </td>
            </tr>
        </table>
        {$closeNewCategoryForm}
        
        <div class="post_header">
            <h3 class="admin_title">Elimina una categoria </h3>
        </div>
        
        {$openDeleteCategoryForm}
        <table>
            <tr>
                <td>
                    {$select_delete_category_open}
                    {$select_delete_category_options}
                    {$select_delete_category_close}
                </td>
                <td>
                    {$submit_delete_category}

                </td>
            <tr>
                
            </tr>
            <tr>
                <td style="color:green;" colspan="2">
                    {if isset($category_deleted)}
                        <b>{$category_deleted}</b>
                    {/if}

                </td>
            </tr>
        </table>
        {$closeDeleteCategoryForm}
    </div>
    <br />
    <div id="add_forum">
        <div class="post_header">
            <h3 class="admin_title">Aggiungi un nuovo forum </h3>
        </div>
        {$openNewForumForm}
        <table>
            <tr>
                <td>
                    {$select_category_open}
                    {$select_category_options}
                    {$select_category_close}
                </td>
            </tr>
            <tr>
                <td>
                    {$input_new_forum_name}
                </td>

            </tr>
            <tr>
                <td>
                    {$textarea_desc_new_forum}
                </td>
                <td style="vertical-align:bottom;padding-bottom:5px;">
                    {$submit_new_forum}

                </td>
            </tr>
            <tr>

                <td style="color:green;">
                    {if isset($forum_inserted)}
                        <b>{$forum_inserted}</b>
                    {/if}

                </td>
            </tr>
        </table>
        {$closeNewForumForm}
        
        <div class="post_header">
            <h3 class="admin_title">Sposta un forum </h3>
        </div>
        {$openMoveForum}
        <table>

            <tr>
                <td>
                    Cerca forum
                </td>
            </tr>
            <tr>
                <td>
                    {$move_forum_name}
                </td>
                <td>
                    {$select_forum_move_open}
                    {$select_move_forum_options}
                    {$select_forum_move_close}
                </td>
                <td>
                    {$submit_move_forum}
                </td>
            </tr>
            <tr>

                <td colspan="2" style="color:green;">
                    {if isset($forum_moved)}
                        <b>{$forum_moved}</b>
                    {/if}

                </td>
            </tr>
        </table>
        <br />
        {$closeMoveForum}
    </div>    


</div>